Scenario: Distributor submits RTP to AP Core and receieves the response to RTP

Given the consumer has chosen to pay by Zapp quick pay checkout meathod on a merchant's e-com site with deliverty type as DIGDEL
When the distributor submits a structurally valid request with RTP details
Then all RTP information is stored with a system timestamp
And APCore generates the unique AP Trnasaction ID, ReconID and the BRN
And a successful response message is to be created and sent to the OSB
And status of the RTP submitted is updated to AWAITING_RETRIEVAL

Scenario: AP Core recieves the request to Retrive RTP from Consumer FI and sends an RTP for Autherization to Consumer's FI

Given the consumer logs into the mobile app successfully and enters the correct BRN
When Consumer's FI sends the structurally valid request to Retrieve previously submitted RTP to AP Core
Then AP Core retrieves the transaction associated with the received valid BRN
And the Consumer is identified and associated with the transaction
And a succesful response message which includes emailaddress of the consumer is to be created and sent to OSB
And the status of the RTP is updated to AWAITING_PAYMENT_CONFIRMATION

Scenario: AP Core receives the confirm payment from FI and then sends a Payment Notification to the Distributor

Given the Consumer confirms the address on the FI App and authorises the payment
When the Consumer's FI sends a successful structurally valid payment confirmation to AP Core
Then a successful message with consumers mail address is to be created and sent to OSB
And the status of the RTP is updated to AUTHORISED